<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <title>到岗情况</title>
</head>
<body>
<?php foreach ($resp as $area => $persons): ?>
    <div>
        <h1>
            <?= $area ?>
        </h1>
        <?php foreach ($persons as $p): ?>
            <p><?= $p["name"] ?> <small><?= $p["ts"] ?></small></p>
        <?php endforeach; ?>
    </div>
<?php endforeach; ?>
</body>
</html>